/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.zx.video.live.entity;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 视频直播管理Entity
 * @author zpp
 * @version 2020-01-19
 */
@Table(name="t_video_live", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="video_name", attrName="videoName", label="直播名称", queryType=QueryType.LIKE),
		@Column(name="video_simple", attrName="videoSimple", label="直播简介"),
		@Column(name="look_num", attrName="lookNum", label="观看人数"),
		@Column(name="teacher_id", attrName="teacherId", label="直播老师的id"),
		@Column(name="video_content", attrName="videoContent", label="直播课程介绍"),
		@Column(name="video_img", attrName="videoImg", label="直播的封面图片"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="itemize", attrName="itemize", label="分类"),
		@Column(name="recomm", attrName="recomm", label="推荐字段 0代表不推荐 1代表推荐"),
	}, orderBy="a.update_date DESC"
)
public class TvideoLive extends DataEntity<TvideoLive> {
	
	private static final long serialVersionUID = 1L;
	private String videoName;		// 直播名称
	private String videoSimple;		// 直播简介
	private Integer lookNum;		// 观看人数
	private String teacherId;		// 直播老师的id
	private String videoContent;		// 直播课程介绍
	private String videoImg;		// 直播的封面图片
	private String itemize;		// 分类
	private Integer recomm;		// 推荐字段 0代表不推荐 1代表推荐
	
	public TvideoLive() {
		this(null);
	}

	public TvideoLive(String id){
		super(id);
	}
	
	@Length(min=0, max=150, message="直播名称长度不能超过 150 个字符")
	public String getVideoName() {
		return videoName;
	}

	public void setVideoName(String videoName) {
		this.videoName = videoName;
	}
	
	@Length(min=0, max=300, message="直播简介长度不能超过 300 个字符")
	public String getVideoSimple() {
		return videoSimple;
	}

	public void setVideoSimple(String videoSimple) {
		this.videoSimple = videoSimple;
	}
	
	public Integer getLookNum() {
		return lookNum;
	}

	public void setLookNum(Integer lookNum) {
		this.lookNum = lookNum;
	}
	
	@Length(min=0, max=50, message="直播老师的id长度不能超过 50 个字符")
	public String getTeacherId() {
		return teacherId;
	}

	public void setTeacherId(String teacherId) {
		this.teacherId = teacherId;
	}
	
	@Length(min=0, max=1000, message="直播课程介绍长度不能超过 1000 个字符")
	public String getVideoContent() {
		return videoContent;
	}

	public void setVideoContent(String videoContent) {
		this.videoContent = videoContent;
	}
	
	@Length(min=0, max=200, message="直播的封面图片长度不能超过 200 个字符")
	public String getVideoImg() {
		return videoImg;
	}

	public void setVideoImg(String videoImg) {
		this.videoImg = videoImg;
	}
	
	@Length(min=0, max=100, message="分类长度不能超过 100 个字符")
	public String getItemize() {
		return itemize;
	}

	public void setItemize(String itemize) {
		this.itemize = itemize;
	}
	
	public Integer getRecomm() {
		return recomm;
	}

	public void setRecomm(Integer recomm) {
		this.recomm = recomm;
	}
	
}